using System.Windows.Forms;

namespace YaP.Library.YapControls
{
    internal class ToolStripServerLabel : ToolStripMenuItem
    {
        public string addField;
        public string familyField;
        public string portField;

        /// <summary>
        /// Constructor for ToolStripServerLabel
        /// </summary>
        /// <param name="add">Hostname</param>
        /// <param name="po">Port</param>
        /// <param name="fam">Network Name</param>
        public ToolStripServerLabel(string add, string po, string fam)
        {
            addField = add;
            portField = po;
            familyField = fam;
        }

        public override string Text
        {
            get { return addField; }
        }

        public override string ToString()
        {
            return addField;
        }
    }
}